package org.jeecg.modules.ws.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ws.entity.WsBondInfo;
import org.jeecg.modules.ws.entity.WsHblxDetail;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description: 付息详情
 * @Author: jeecg-boot
 * @Date:   2025-04-03
 * @Version: V1.0
 */
public interface IWsHblxDetailService extends IService<WsHblxDetail> {

    /**
     * 获取拓展列
     * @param dataList
     * @return
     */
    List<String> getTitleList(List<WsHblxDetail> dataList);
    /**
     * 获取标题集合
     * @param list
     * @return
     */
    Map<String,Object> getTitleMap(List<WsHblxDetail> list);

    /**
     * 组装返回数据
     * @param list
     * @return
     */
    List<Map<String,Object>> packageRecords(List<WsHblxDetail> list);

    /**
     * 根据债券编码获取数据
     * @param bondCode
     * @return
     */
    List<WsHblxDetail> listByBondCode(String bondCode);

    /**
     * 导出Excel
     * @param request
     * @param bondCode
     * @return
     */
    @Deprecated
    ModelAndView exportExcel(HttpServletRequest request, String bondCode);

    void exportExcel(HttpServletRequest request, HttpServletResponse response, String bondCode);

    /**
     * 上传Excel
     * @param file
     * @param request
     * @param response
     * @return
     */
    // Result<?> uploadExcel(MultipartFile file, HttpServletRequest request, HttpServletResponse response);
}
